﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Runda.EShop.Web.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线订购系统</title>
    <link href="Content/css_all.css" rel="stylesheet" type="text/css" /> 
    <link href="Content/login.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" language="javascript">

            function fGetCode() {
                if (document.getElementById("getcode")) {
                    document.getElementById("getcode").src = "Service/ValidateCode.aspx?" + Math.random();
                }
            }

            document.onkeydown = function (event) {
                var e = event ? event : (window.event ? window.event : null);

                if (e != null && e.keyCode == 13) {
                    var obtn = document.getElementById('btnLogin');
                    if (obtn) {
                        obtn.focus();
                        obtn.click();
                    }
                }
            }
            function CheckOnLogin() {
                if ($('#txtUserName').val() == '') {
                    $.ligerDialog.alert('请输入账号', '提示');
                    return false;
                }
                if ($('#txtPassword').val() == '') {
                    $.ligerDialog.alert('请输入密码', '提示');
                    return false;
                }
                if ($('#txtValidateCode').val() == '') {
                    $.ligerDialog.alert('请输入验证码', '提示');
                    return false;
                }
            }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <div class="index_bg">
        <!--顶部文件-->
        <div style="width: 865px; margin: 0 auto;">
            &nbsp;<!--顶部文件结束--><div class="clear">
            <span class="l">
                <img src="images/Site/Logo.png" title="在线订购系统" alt="在线订购系统"></span></div>   
        <div style="width:865px; margin:0 auto;">
            <div style="position:relative;width:865px; height:423px;">
                <img src="images/Site/intranetLoginBox.png" style="margin-left:350px; margin-top:40px;" width="455" height="291" />
                <div style="position:absolute; left:30px; top: 0px;">
                </div>
                <!--用户登陆-->
                <div class="login">
                     <div class="login1">
                        <span class="STYLE1">账&nbsp;&nbsp;&nbsp;号：</span><span>
                            <asp:TextBox ID="txtUserName" runat="server" class="shouduo-kuang" Style="width: 120px;" TabIndex="1"></asp:TextBox>
                            <a href="#" style=" display:none"><img src="images/Site/icon_info_login.gif" border="0"/></a>
                        </span>
                    </div>
                    <div class="login1">
                        <span class="STYLE1">密&nbsp;&nbsp;&nbsp;码：</span><span>
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" class="shouduo-kuang" Style="width: 120px;" TabIndex="2"></asp:TextBox>
                            <a href="#" style=" display:none"><img src="images/Site/icon_info_login.gif" border="0"/></a>
                        </span>
                    </div>
                    <div class="login1">
                        <span class="STYLE1">验证码：</span><span>
                            <asp:TextBox ID="txtValidateCode" runat="server" class="shouduo-kuang" Style="width: 40px;" Text="" TabIndex="3"></asp:TextBox> 
                                <img align="absmiddle" width="75" height="23" id="getcode" title="看不清楚？ 换一张" alt="看不清楚？ 换一张" src="Service/ValidateCode.aspx" onclick="fGetCode();" style="cursor:pointer;" />
                          
                        </span>
                    </div>
                    <p class="ButtonPart" >
                        <span class="index_banner0 l">
                            <asp:LinkButton ID="btnLogin" runat="server" Text="登录" CssClass="clan" Style="float: left;" OnClick="btnLogin_Click"></asp:LinkButton>
                        </span><span class="l" style="margin-left: 10px; line-height: 25px;"> 
                        </span>
                    </p>
                    <br />
                    <span id="spanError" runat="server" class="LoginErrorBox" style="display:none;"></span>
                </div>
            </div>
            <!--用户登陆结束-->
        </div>
        <!--底部按钮-->
        <!--底部按钮结束-->
    </div>
   <%-- <div style="width:865px; margin:25px auto 0 auto;">
        <span class="l" style="margin-left:200px;"><a href="#" class="chui">关于润达</a></span>
    </div>--%>
    </div>
    </form>
    <script src="Content/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="Content/Lib/base.js" type="text/javascript"></script>
    <script src="Content/Lib/ligerDialog.js" type="text/javascript"></script>
    <script src="Content/Lib/ligerDrag.js" type="text/javascript"></script>
    <script src="Content/Lib/ligerResizable.js" type="text/javascript"></script>
    <link href="Content/Lib/skins/Aqua/css/ligerui-common.css" rel="stylesheet" type="text/css" />
    <link href="Content/Lib/skins/Aqua/css/ligerui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="Content/Lib/skins/Gray/css/dialog.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        //预加载图片
        $(document).ready(function () {
            var imgArr = new Array();
            imgArr = ['Images/Site/nov1_bg_s.jpg','images/Site/i_table_bg.jpg'];
            $.each(imgArr, function (i, value) {
                var img = new Image();
                $(img).attr('src', value);
            });
        });
</script>
</body>
</html>
